# 基于最新版的NODE容器创建
# FROM node:latest
FROM registry-vpc.cn-shanghai.aliyuncs.com/chanjue_base/chromium-puppeteer:12
MAINTAINER linjiarong <linjiarong@chanjue.net>

COPY . /app

WORKDIR /app

RUN npm install \
    && npm install puppeteer \
    && npm install -g pm2

# 暴露端口映射
EXPOSE 8080

# 容器的执行命令
CMD ["sh", "-c", "pm2-runtime start /app/pdf-service.js -i 4"]







